package org.biz.modules.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.biz.modules.entity.VerifyCode;
import org.springframework.stereotype.Repository;

@Mapper
public interface VerifyCodeMapper {

    VerifyCode selectByTemplateCodeAndPhone(@Param("phone")String phone, @Param("templateCode")String templateCode);

    int insert(@Param("verifyCode") VerifyCode verifyCode);

    void setUsed(Long id);

}
